<?php

require_once('Vmg/Soap/Class.php');

/**
 * OTAService class
 * 
 *  
 * 
 * @author    {author}
 * @copyright {copyright}
 * @package   {package}
 */
class Vmg_Soap_OTAService extends SoapClient {

  private static $classmap = array(
                                    'SendOtaDownloadLink' => 'SendOtaDownloadLink',
                                    'SendOtaDownloadLinkResponse' => 'SendOtaDownloadLinkResponse',
                                    'SendOtaDownloadLinkResult' => 'SendOtaDownloadLinkResult',
                                    'GetOtaDownloadLink' => 'GetOtaDownloadLink',
                                    'GetOtaDownloadLinkResponse' => 'GetOtaDownloadLinkResponse',
                                    'GetOtaDownloadLinkResult' => 'GetOtaDownloadLinkResult',
                                    'ActivateUser' => 'ActivateUser',
                                    'ActivateUserResponse' => 'ActivateUserResponse',
                                    'ActivateUserResult' => 'ActivateUserResult',
                                   );

  public function Vmg_Soap_OTAService($wsdl = "http://203.162.70.244:8079/OTAService.asmx?WSDL", $options = array()) {
    foreach(self::$classmap as $key => $value) {
      if(!isset($options['classmap'][$key])) {
        $options['classmap'][$key] = $value;
      }
    }
    parent::__construct($wsdl, $options);
  }

  /**
   *  
   *
   * @param SendOtaDownloadLink $parameters
   * @return SendOtaDownloadLinkResponse
   */
  public function SendOtaDownloadLink(SendOtaDownloadLink $parameters) {
    return $this->__soapCall('SendOtaDownloadLink', array($parameters),       array(
            'uri' => 'http://vmgmedia.vn/xzone/api',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param GetOtaDownloadLink $parameters
   * @return GetOtaDownloadLinkResponse
   */
  public function GetOtaDownloadLink(GetOtaDownloadLink $parameters) {
    return $this->__soapCall('GetOtaDownloadLink', array($parameters),       array(
            'uri' => 'http://vmgmedia.vn/xzone/api',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param ActivateUser $parameters
   * @return ActivateUserResponse
   */
  public function ActivateUser(ActivateUser $parameters) {
    return $this->__soapCall('ActivateUser', array($parameters),       array(
            'uri' => 'http://vmgmedia.vn/xzone/api',
            'soapaction' => ''
           )
      );
  }

}

?>
